﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using AutoMapper;
using FwProject.Car.Dto;
using FwProject.Comm;
using FwProject.Core.Restaurant;
using FwProject.Core.TypeNumber;
using FwProject.Distribution.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject.Restaurant.Dto
{
    public class LoadCarDetailsOutputDto : EntityDto<Guid>
    {
        /// <summary>
        /// 装车单号
        /// </summary>
        public string CreationNumber { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public ExamineStatus ExamineStatus { get; set; }


        /// <summary>
        /// 装车日期
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 车牌号
        /// </summary>
        public string PlatesNumber { get; set; }

        /// <summary>
        /// 司机名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 司机ID
        /// </summary>
        public long CreatorUserId { get; set; }

        /// <summary>
        /// 司机ID
        /// </summary>
        public long DriverUserId  { get; set; }
        /// <summary>
        /// 装车状态
        /// </summary>
        public CarStatus CarStatus { get; set; }

        /// <summary>
        /// 装车数量
        /// </summary>
        //[SqlMap(_IsNotMap: true)]
        public int CountProduct { get; set; }
        /// <summary>
        /// 已配送餐厅
        /// </summary>
        public int RestaurantInfoCount { get; set; }

        [SqlMap(_IsNotMap:true)]
        public List<LodingDetailsDto> Lodings { get; set; }
    }


    public class LodingDetailsDto
    {
        public Guid Id { get; set; }

        public long CreatorUserId { get; set; }

        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 货品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 装车数
        /// </summary>
        public int Countproduct { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public UnitFlag Unit { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public int Remaining { get; set; }

        /// <summary>
        /// 本次配送套数
        /// </summary>
        public int Distributioncount { get; set; }
        
        /// <summary>
        /// 回收
        /// </summary>
        public int Recoverycount { get; set; }

    }



}
